import request from '@/utils/request'

// 查询排片信息数据列表
export function listScreening(query) {
  return request({
    url: '/system/screening/list',
    method: 'get',
    params: query
  })
}

// 查询排片信息数据详细
export function getScreening(showingId) {
  return request({
    url: '/system/screening/' + showingId,
    method: 'get'
  })
}

// 新增排片信息数据
export function addScreening(data) {
  return request({
    url: '/system/screening',
    method: 'post',
    data: data
  })
}

// 修改排片信息数据
export function updateScreening(data) {
  return request({
    url: '/system/screening',
    method: 'put',
    data: data
  })
}

// 删除排片信息数据
export function delScreening(showingId) {
  return request({
    url: '/system/screening/' + showingId,
    method: 'delete'
  })
}
